﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class GameOverPanel : MonoBehaviour {

	public void Again()
    {
        GameObject.Find("XiaoQi").transform.localPosition = new Vector3(0,0,-1);
        GameObject.Find("Role_XiaoQi").GetComponent<Animator>().SetTrigger("Idle");
        Parkour.Instance.canRun = false;
        Parkour.Instance.canTouch = true;
        Parkour.Instance.i = 1;
        Destroy(gameObject);
    }

    public void Quit()
    {
        SceneManager.LoadScene("Login");
    }
}
